﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YouErYuanManage.Models;
using YouErYuanManage.Filter;
using YouErYuanModels;

namespace YouErYuanManage.Controllers
{
    [IsLogin]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        // 设置查看
        public ActionResult ChaKanSetting()
        {
            return View();
        }

        //教师设置
        public ActionResult TeacherSetting()
        {
            YouErYuanBLL.TeacherBLL teacherbll = new YouErYuanBLL.TeacherBLL();
            string schoolid = (HttpContext.Session["user"] as Teacher).Schoolid;
            List<TClass> classlist = teacherbll.SelectClassForSchoolid(schoolid);
            ViewBag.classlist = classlist;
            return View();
        }
        //视频设置
        public ActionResult VideoSetting()
        {
            return View();
        }
        //课程设置
        public ActionResult CourseSetting()
        {
            return View();
        }
        //食谱设置
        public ActionResult RispeSetting()
        {
            return View();
        }
        //校园简介
        public ActionResult SchoolInfoSetting()
        {
            return View();
        }
        //新闻发布
        public ActionResult NewsPublish()
        {
            return View();
        }
        //通知发布
        public ActionResult TongzhiPublish()
        {
            return View();
        }

        //======================管理员菜单================
        // 幼儿园管理
        public ActionResult YEYManage()
        {
            return View();
        }
        // 园长账户管理
        public ActionResult YuanzhangAccount()
        {
            return View();
        }
        // 基础数据管理
        public ActionResult BaseData()
        {
            return View();
        }
        //app使用统计
        public ActionResult loginReport()
        {
            return View();
        }
        //模板点击统计
        public ActionResult ModelReport()
        {
            return View();
        }
    }
}